﻿@model AP.Web.Models.LogOnModel
@{
    ViewBag.Title = "登录";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm(null, null, FormMethod.Post, new { @id = "login" }))
{ 
    <h1>
        用户登录</h1>
    <fieldset id="inputs">
        @Html.TextBoxFor(m => m.UserName, new { @placeholder = "用户名" })
        @Html.PasswordFor(m => m.Password, new { @placeholder = "密码" })
    </fieldset>
    <fieldset id="actions">
        <input type="submit" id="submit" value="登录">
        @* <a href="">Forgot your password?</a><a href="">Register</a>*@
    </fieldset>
    <p>
        @Html.ValidationSummary(true)
        @Html.ValidationMessageFor(m => m.UserName)
        @Html.ValidationMessageFor(m => m.Password)
    </p>
}
